#include "simple_random.h"

namespace {

static std::random_device rd;
static std::mt19937 gen(rd());

}  // namespace

int32_t RandI32(int32_t min, int32_t max) {
  if (min >= max) {
    return min;
  }
  std::uniform_int_distribution<int32_t> dis(min, max);
  return dis(gen);
}
